<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Game
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
?>

<div class="games_browse">

  <h3 class="sep">
    <span>
      <?php echo $this->translate('Popular Game Tags'); ?>
    </span>
  </h3>

<?php if (!empty($this->tags)): ?>
  <div class="radcodes_popular_tags games_popular_tags">
    <ul>
    <?php foreach ($this->tags as $k => $tag): ?>
      <li><?php echo $this->htmlLink(array(
                  'route' => 'game_general',
                  'action' => 'browse',
                  'tag' => $tag->tag_id),
        $tag->text, 
        array('class'=> "tag_x tag_$k")
      )?>
      <sup><?php echo $tag->total; ?></sup>
      </li>
    <?php endforeach; ?>
    </ul>
  </div>
<?php else: ?>
  <div class="tip">
    <span>
      <?php echo $this->translate('There are no game tags.');?>
    </span>
  </div>
<?php endif;?>  
</div>